.class public Lcom/estrongs/android/pop/app/openscreenad/t;
.super Lcom/estrongs/android/ui/dialog/x0;
.source "PrivacyDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/openscreenad/t$a;
    }
.end annotation


# instance fields
.field private b:Lcom/estrongs/android/pop/app/openscreenad/t$a;

.field private c:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/android/pop/app/openscreenad/t$a;)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/estrongs/android/pop/app/openscreenad/t$a;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/x0;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->b:Lcom/estrongs/android/pop/app/openscreenad/t$a;

    const/4 p1, 0x0

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/openscreenad/t;->setCancelable(Z)V

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/openscreenad/t;->setCanceledOnTouchOutside(Z)V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->b:Lcom/estrongs/android/pop/app/openscreenad/t$a;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Lcom/estrongs/android/pop/app/openscreenad/t$a;->a(Z)V

    return-void
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->b()V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->b:Lcom/estrongs/android/pop/app/openscreenad/t$a;

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lcom/estrongs/android/pop/app/openscreenad/t$a;->a(Z)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c00ec

    .line 2
    :try_start_0
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setContentView(I)V

    const p1, 0x7f090d8c

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/webkit/WebView;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->c:Landroid/webkit/WebView;

    .line 4
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result p1

    int-to-float p1, p1

    const v0, 0x3ee66666    # 0.45f

    mul-float p1, p1, v0

    float-to-int p1, p1

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->c:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 7
    iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 8
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->d()Z

    move-result p1

    if-eqz p1, :cond_1

    const-string p1, "file:///android_asset/es_privacy_content_zh.html"

    goto :goto_0

    :cond_1
    const-string p1, "file:///android_asset/es_privacy_content_en.html"

    .line 9
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->c:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    const p1, 0x7f0903fe

    .line 10
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/openscreenad/n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/openscreenad/n;-><init>(Lcom/estrongs/android/pop/app/openscreenad/t;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f0900a6

    .line 11
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    new-instance v0, Lcom/estrongs/android/pop/app/openscreenad/o;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/openscreenad/o;-><init>(Lcom/estrongs/android/pop/app/openscreenad/t;)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 12
    :catch_0
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/openscreenad/t;->b:Lcom/estrongs/android/pop/app/openscreenad/t$a;

    const/4 v0, 0x1

    invoke-interface {p1, v0}, Lcom/estrongs/android/pop/app/openscreenad/t$a;->a(Z)V

    :goto_1
    return-void
.end method

.method public setCancelable(Z)V
    .locals 0

    const/4 p1, 0x0

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->setCancelable(Z)V

    return-void
.end method

.method public setCanceledOnTouchOutside(Z)V
    .locals 0

    const/4 p1, 0x0

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    return-void
.end method

.method public show()V
    .locals 4

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/x0;->show()V

    .line 2
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    .line 4
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->g(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result v2

    int-to-float v2, v2

    const v3, 0x3f59999a    # 0.85f

    mul-float v2, v2, v3

    float-to-int v2, v2

    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->width:I

    goto :goto_0

    .line 6
    :cond_0
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result v2

    int-to-float v2, v2

    const v3, 0x3f19999a    # 0.6f

    mul-float v2, v2, v3

    float-to-int v2, v2

    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->width:I

    :goto_0
    const/4 v2, -0x2

    .line 7
    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->height:I

    const/16 v2, 0x11

    .line 8
    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    return-void
.end method
